﻿using MovingChame.WindowsStoreApp.Helpers;
using MovingChameLibrary.Models;
using MovingChameLibrary.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace MovingChame.WindowsStoreApp.ViewModels
{
    public class TourOverviewPageViewModel : TourViewModel
    {
        public TourOverviewPageViewModel(int tourId)
            : base(tourId)
        { }

        public override ICommand FavouriteCommand
        {
            get
            {
                if (this._favouriteCommand == null)
                {
                    _favouriteCommand = new RelayCommand(new Action(FavouriteExecuted), new Func<bool>(FavouriteCanExecute), false);
                }
                return _favouriteCommand;
            }
        }

        public bool FavouriteCanExecute()
        {
            return true;
        }

        public void FavouriteExecuted()
        {
            DialogHelper.ShowInformDialog("Successfully add to your favourite list.");
        }
    }
}